package mil.af.amc.adpetracker.web.actions.struts2.handReceipt;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;
import mil.af.amc.adpetracker.model.HandReceipt;
import mil.af.amc.adpetracker.service.HandReceiptService;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.springframework.beans.factory.annotation.Autowired;

/**
 * @author Jason Ferguson
 */
@ParentPackage("json-default")
@Namespace("/handReceipt")
public class HandReceiptAction extends ActionSupport implements ModelDriven<HandReceipt>, Preparable {

    @Autowired
    private HandReceiptService handReceiptService;

    // ModelDriven implementation
    private HandReceipt model;

    public HandReceipt getModel() {
        return model;
    }

    // Preparable implementation
    public void prepare() {

    }

    @Action(value="list", results = {
            @Result(name="success", location = "/WEB-INF/struts2/handReceipt/list.jsp")
    })
    public String execute() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value="viewCreate", results = {
            @Result(name="success", location = "/WEB-INF/struts2/handReceipt/create.jsp")
    })
    public String viewCreate() throws Exception {
        throw new UnsupportedOperationException();
    }

    @Action(value="create", results = {
            @Result(name="success", location = "/WEB-INF/struts2/handReceipt/list.jsp"),
            @Result(name="input", location = "/WEB-INF/struts2/handReceipt/create.jsp")
    })
    public String create() throws Exception  {
        throw new UnsupportedOperationException();
    }

    @Action(value = "viewDelete", results = {
            @Result(name="success", location = "/WEB-INF/struts2/handReceipt/delete.jsp")
    })
    public String viewDelete() throws Exception  {
        throw new UnsupportedOperationException();
    }

    @Action(value = "delete", results = {
            @Result(name="success", location = "/WEB-INF/struts2/handReceipt/list.jsp"),
            @Result(name="input", location = "/WEB-INF/struts2/handReceipt/delete.jsp")
    })
    public String delete() throws Exception  {
        throw new UnsupportedOperationException();
    }

    public String close() throws Exception  {
        throw new UnsupportedOperationException();
    }

    public String create1297() throws Exception  {
        throw new UnsupportedOperationException();
    }
}
